<main class="lyear-layout-content">

    <div class="container-fluid p-t-15">
        <div class="row">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <div class=" callout-success callout" style="padding: 0;">
                    <nav aria-label="breadcrumb">
                        <ol class="breadcrumb" style="padding: 1.25rem 1rem;background-color: white;">
                            <li class="breadcrumb-item"><a href="{:url('admin/order/index')}">订单列表</a>
                            </li>
                            <li class="breadcrumb-item active" aria-current="page">订单修改</li>
                        </ol>
                    </nav>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header">
                        <div class="card-title">订单分类</div>
                    </div>
                    <div class="card-body">
                        <form action="{:url('/admin/order/update')}" method="post">
                            <div class="form-group col-lg-2">
                                <label for="id">订单编号</label>
                                <input type="text" class="form-control" id="id" name="id" value="{$order.id}" readonly>
                            </div>

                            <div class="form-group col-lg-2">
                                <label for="total">订单总价</label>
                                <input type="text" class="form-control" id="total" name="total" value="{$order.total}"
                                    readonly>
                            </div>
                            <div class="form-group col-lg-2">
                                <label for="">买家姓名</label>
                                <input type="text" class="form-control" id="" name="" value="{$order.user.nickname}"
                                    readonly>
                            </div>


                            <div class="form-group col-lg-2">
                                <label for="">订单号</label>
                                <input type="text" class="form-control" id="" name="" value="{$order.code}" readonly>
                            </div>

                            <div class="form-group col-lg-2">
                                <label for="">配送公司</label>
                                <select name="expid" class="form-control" id="expid">
                                    {foreach $express as $item}
                                    <option value="{$item.id}" {$order.expid==$item.id ? 'selected' : '' }>{$item.name}
                                    </option>
                                    {/foreach}
                                </select>
                            </div>

                            <div class="form-group col-lg-2">
                                <label for="">配送单号</label>
                                <input type="text" class="form-control" id="" name="" value="{$order.expcode}" readonly>
                            </div>


                            <div class="form-group col-lg-2">
                                <label for="">订单状态</label>
                                <select name="status" id="status" class="form-control">
                                    {foreach $status as $key => $val}
                                    <option value="{$key}" {$order.status==$key ? 'selected' : '' }>{$val}
                                    </option>
                                    {/foreach}
                                </select>
                            </div>

                            <div class="form-group col-md-12">
                                <label for="seo_description">备注</label>
                                <textarea class="form-control" id="content" name="content" rows="5" value=""
                                    placeholder="备注" style="resize: none;">{$order.content}</textarea>
                            </div>

                            <div class="form-group col-lg-12">
                                <button type="submit" class="btn btn-primary">修改</button>
                                <a class="btn btn-success" href="{:url('admin/order/index')}">返回</a>
                            </div>

                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

</main>